﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utility;
using Data;

namespace DataAccess
{
    public class Tbl_StudentBus
    {
        LinqUtility<tbl_student> context = new LinqUtility<tbl_student>();

        public List<tbl_student> getListStudent()
        {
            return context.GetAll();
        }

        public void insertStudent(tbl_student ts)
        {
            context.Insert(ts);
        }

        public void updateStudent(tbl_student ts)
        {
            context.Update(ts);
        }

        public void delete(tbl_student ts)
        {
            context.Delete(ts);
        }
    }
}
